//
//  PayOrderViewCell.m
//  LiverClient
//
//  Created by dongshangtong on 16/5/10.
//  Copyright © 2016年 朱亚杰. All rights reserved.
//

#import "PayOrderViewCell.h"

@interface PayOrderViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *paytypeImg;
@property (weak, nonatomic) IBOutlet UILabel *payName;
@property (weak, nonatomic) IBOutlet UILabel *subName;


@end

@implementation PayOrderViewCell


+(instancetype)payOrderViewCellWithTableView:(UITableView *)tableView
{
    static NSString *cellID = @"PayOrderViewCell";
    
    PayOrderViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    
    if (!cell) {
        
        cell = [[PayOrderViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
    }
    
    return cell;
    
}



-(void)setPayDit:(NSDictionary *)payDit
{
    
    
    _payDit = payDit;
    
    self.paytypeImg.image = [UIImage imageNamed:payDit[@"payImg"]];
    
    self.payName.text = payDit[@"payName"];
    
    self.subName.text = payDit[@"paySubtitle"];
    
    
}



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    
    [super setSelected:selected animated:animated];
    
    self.BtnStatus.selected =selected;

    // Configure the view for the selected state
}

@end
